package action;

import com.opensymphony.xwork2.ActionSupport;

import entity.Customer;
import serviceimpl.CserviceImpl;

public class Action extends ActionSupport{

	private int id;
	private Customer c;
	public Customer getC() {
		return c;
	}

	public void setC(Customer c) {
		this.c = c;
	}

	private CserviceImpl cs;
	


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setCs(CserviceImpl cs) {
		this.cs = cs;
	}
	
	@Override
	public String execute() throws Exception {
		c=cs.get(id);
		System.out.println("abc");
		return SUCCESS;
	}
}
